package com.frejoys.common.dto.common.appversion;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

@Data
public class AppVersionAddDto {

    @NotNull(message = "{600}")
    @Schema(type = "Float", name = "version", description = "版本号", required = true, defaultValue = "1.0")
    private Float version;

    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "address", description = "下载地址", required = true, defaultValue = "https://xxx")
    private String address;

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "type", description = "类型：1.ios，2.android", required = true, defaultValue = "1")
    private Integer type;

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "upgradeType", description = "类别：0.正常升级，1.强制升级", required = true, defaultValue = "0")
    private Integer upgradeType;

    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "upgradeTime", description = "升级开始时间", required = true, defaultValue = "2023-11-30 12:00:00")
    private String upgradeTime;

}
